//
// Created by chengs1r on 2021/8/13.
//

#include <stdio.h>

typedef unsigned int uint;

int main() {
    unsigned int len_char = sizeof(char);
    uint len_short = sizeof(short);
    uint len_int = sizeof(int);
    uint len_long = sizeof(long);
    uint len_long_long = sizeof(long long);
    uint len_float = sizeof(float);
    uint len_double = sizeof(double);

    printf("当前编译环境是%lu位\n", sizeof(int *) * 8);

    printf("The size of char is %u bytes\n", len_char);
    printf("The size of short is %u bytes\n", len_short);
    printf("The size of int is %u bytes\n", len_int);
    printf("The size of long is %u bytes\n", len_long);
    printf("The size of long long  is %u bytes\n", len_long_long);
    printf("The size of float is %u bytes\n", len_float);
    printf("The size of double is %u bytes\n", len_double);

    return 0;
}